package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 两地销售申请表
 * </p>
 *
 * @author 小飞
 * @since 2019-07-11
 */
@Data
@TableName("both_sale_commit")
public class BothSaleCommit implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 经度
     */
    @TableField("longitude")
    private String longitude;

    /**
     * 纬度
     */
    @TableField("latitude")
    private String latitude;

    /**
     * 声请人
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 申请状态
     */
    @TableField("check_code")
    private Integer checkCode;

    /**
     * 申请时间
     */
    @TableField("time")
    private Date time;

    /**
     * 指定的经销商部门id
     */
    @TableField("dealer_dept_id")
    private Long dealerDeptId;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 详细地址
     */
    @TableField("address")
    private  String address;

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;


    public Integer getCheckCodeDealer() {
        return checkCodeDealer;
    }

    public void setCheckCodeDealer(Integer checkCodeDealer) {
        this.checkCodeDealer = checkCodeDealer;
    }

    /**
     * 经销商审核
     */
    @TableField("check_code_dealer")
    private  Integer checkCodeDealer;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(Integer checkCode) {
        this.checkCode = checkCode;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Long getDealerDeptId() {
        return dealerDeptId;
    }

    public void setDealerDeptId(Long dealerDeptId) {
        this.dealerDeptId = dealerDeptId;
    }

    @Override
    public String toString() {
        return "BothSaleCommit{" +
                "id=" + id +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", userId=" + userId +
                ", checkCode=" + checkCode +
                ", time=" + time +
                ", dealerDeptId=" + dealerDeptId +
                "}";
    }
}
